package com.demo.dao;

import com.demo.pojo.Account;

/**
 * @ClassName a
 * @Description TODO
 * @Author Windy
 * @Date 2022/9/1 11:57
 * @Version 1.0
 **/
public interface AccountDao {
    /**
     * 根据Id查询账户
     *
     * @param accountId
     * @return
     */
    Account findAccountById(Integer accountId);

    /**
     * 根据名称查询账户
     *
     * @param accountName
     * @return
     */
    Account findAccountByName(String accountName);

    /**
     * 更新账户
     *
     * @param account
     */
    void updateAccount(Account account);

}

